From 32b70c99c62fc4cfd0566c94dc4ff1cb0cdc1e43 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 9 Sep 2008 18:24:25 +0000 Subject: [PATCH] Don't crash on exit in Realtime mode if we're not writing to a "real" file format. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3479 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/main.c b/gpsbabel/main.c index 6b0a2d99e..bb75b7a49 100644 --- a/gpsbabel/main.c +++ b/gpsbabel/main.c @@ -682,7 +682,7 @@ main(int argc, char *argv[]) if (ivecs->position_ops.rd_deinit) { ivecs->position_ops.rd_deinit(); } - if (ovecs->position_ops.wr_deinit) { + if (ovecs && ovecs->position_ops.wr_deinit) { ovecs->position_ops.wr_deinit(); } exit(0); -- 2.30.2